export default {
  namespaced: true,
  state: {
      isToastStatus: false,
      toastMsg:'手机号码',
      toastType:'success'
  },
  mutations: {
      isToastStatusModal(state, payload) {
    
          state.isToastStatus = payload.isshow;
          if(payload.isshow){
              state.toastMsg=payload.msg;
             state.toastType=payload.type
          }        
      } 
  },
  actions: {
    asyncisToastStatusModal(context,payload){
      console.log('asyncisToastStatusModal')
      context.commit('isToastStatusModal',payload)

      setTimeout(()=>{
        context.commit('isToastStatusModal',{
          isshow:false
        })
      },1500)
    }
  }
}